#pragma once
#include <iostream>
#include<functional>
using task_t = std::function<void()>;
class Task
{
public:
    Task() {}
    Task(int x, int y) : _x(x), _y(y)
    {
        _result = _x + _y;
    }
    void Exute()
    {
        std::string s = std::to_string(_x) +"+"+ std::to_string(_y) + "= " + std::to_string(_result);
        std::cout << s << std::endl;
    }
    void Debug()
    {
        std::string s = std::to_string(_x) +"+"+ std::to_string(_y) + "= ?";
        std::cout << s << std::endl;
    }

    ~Task() {}

private:
    int _x;
    int _y;
    int _result;
};